Fixed up so that while in callbacks, calling remote vm will result in using same thread as doing the callback. Also added callbackWithConstants as a callback type.