Expand definitions in theory datatypes, now has the expected semantics for incorrectly applied selector terms.