Fixed displaying booleans without a value set.
Instead of sending the attribute detect if responds to
Revert "Simplified template detection for form fields."

This reverts commit 408998cf9a5b5319cb7ebe63d9d2b006b3481a05.