Throw an error if we get an input other than allowed in the INSIDE_CURLY_BRACES block

This way things like {if 1 notanoperator 2} will no longer be accepted but will throw
an actual error instead. This is mostly required because that exact example was previously
causing segfaults, which we really don't want in a library.