Add the ability to control how many return values are pushed onto the stack in Execute() methods in Script objects.

This commit also adds table.shallowcopy() to the scripting library.