Numerous fixes to properly use Javolution structs and fix some other struct bugs