changed variable name to avoid overwriting $object parameter (#13)
added test for complex literal insertion (#13)