Add missing file to build
Remove leftover typedef
Fix TwoLevelThresholdFunction

- Was incorrectly derived from BinaryFunction.
Fix initialization of metaproperty cache

- A rare mistake: "==" instead of the intended "="