system.print() and system.dump() are now implemented mostly on JavaScript side and should work more reliably when encountering complex objects and arrays
Added function doWith()