Instead of using KeyLocator.type directly, use getType().
tests: In test-decode-interest-with-forwarding-entry, use MetaInfo.getType() and getFreshnessPeriod().