Improved typeof using an object's name