Throw error on non-bool cond in if statement
Make equal? work properly under recursion.