[crt] Inline TYPE_CHECK_ARG and PERFORM_INLINE_TYPE_CHECK.
[crt] Missing braces around for loops.
Merge pull request #566 from waywardmonkeys/inline-type-checks

Inline type checks