Fix #577: Make (5L: Any).getClass return java.lang.Long.