LOCI cleanup

Reviewer: @andi-bigswitch 

This cleanup is in preparation for OF 1.4. Now LOCI will pick up new inheritance hierarchies without being told about them ("bsn_tlv" does not appear anywhere in the code). Common length members (tlv16 and u16) are automatically detected. A bunch of dead code is removed too.