Support boolean type on entity fields

Closes #71.