Default to Object.prototype rather than null; it's probably what is wanted and it's often more efficient.
Put a special flag on command functions to identify them.
Add a helper method to get all property names.