Script: Compiler support for managed user objects

Allows the 'new' operator to be used with managed structs to create new
user objects at runtime.