Fix #577: Make (5L: Any).getClass return java.lang.Long.
Merge pull request #578 from sjrd/fix-long-getclass

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