Major performance boost for form properties

http://manage.dimagi.com/default.asp?146259

Formatting change only: convert from generator expression to dict comprehension.