Fixed the messed up keyCmpOrder extraction
Fixed compiler warnings in testmod_keytometa