Add EntityFunctions to predefinedTypes

This change should allow easier date comparisons as per
http://stackoverflow.com/a/6046018/1324019