Fixed bugs where nested arrays and JSONs would yield incorrect Ruby data in Bridge.value_to_ruby.
Refactored JS Sketchup.callback to a generic callback function.