Fix for Bugs 174 and 267

Necessary fixes to ensure usability with legacy 3rd party frameworks. Fixes provide sensible defaults for unknown priorities.