686 dynamic type interface

Some required changes associated with OFS-686. Basically bug fixes and better tests.