Implemented namespace references. Added tests (all pass).