Fixed problem when creating objects like:
function Create($typeName) {
  return new $typeName();
}