simplify encode/decode of processed entities; support pointer and non-pointer fields for processed structs