Fix defined

While working a bit with topaz I encountered a bug in the defined? method. When using it inside a module definition it didn't behave as it should have. For more details please see the added unit test in tests/objects/moduleobject.py (the name is test_definedp) the full commit message of "Added unit test for a bug I ran over ..." might also be helpful.