Global functions such as CreateObject are not implemented in the same way as in built-in objects. This feels like a mess right now...