Set the objectType on the object if not passed

While the `$object_type` var was being correctly set, the `objectType` key was not being set where the key did not previously exist.