Add type and rule getters and stub encode and decode functions