Prevent undef of object_id.

Adding object_id to regex of methods that should not be undefined.
Without this Ruby gives a warning: undefining 'object_id' may cause
serious problems.

Happy to make any corrections needed.

Mike