Updates conversion between js native objects and java. This was causing
issues with session serialization.