Moved the 'Handed' enum to a test src where it belongs
A couple of bug fixes around injecting constants and XML attribute lookup when not working with top-level definitions