Raises TypeError on bad if statements

This relates to issue #6.

Signed-off-by: Julien Danjou <julien@danjou.info>