Pab/devel 2

This patch is mostly to get libalgebra working under the java runtime.
Major changes:
- More careful about types in generators
- inline library tests are tested against both interpreter and java
- libalgebra and libaldor now work with the java runtime.

Sorry about the length of this, but there were a lot of things to change.  I've tried to rebase things to be a
little easier.  One nasty bug in the inliner took a while to find, and I've only worked around it, as a proper
fix would make this series even longer.

Also, Fixes #105