cleanup reflection methods somewhat; fix true vs True bug in build.py (thanks Han!)