Fix for javascript/java Long type incompatibility.