Added API funcs to test if classes/instances have a hidden field, and implemented file.truncate.