Add Long support for JVM & JS platform #thx thomas for the bug repport