Fix various AOT compilation related issues

1. Compilation order was incorrect, causing Clojure files to be compiled before Java files.
2. AOT tests were incorrectly compiled to normal output directory.
3. findNamespaceKeyByName did not work correctly - it only identified a namespace as compilable if :gen-class was the first namespace key.

Fixes CLJ-97.