Reorder and group some definitions

Some types and definitions are now grouped together more logically. Also remove
fixed point type BKFInt16 which is no longer used.