Dublin thought a 13th-century Norman castle had been demolished 150 years ago; a researcher has now shown its walls, courtyard and medieval features were hiding inside a university