Handle print and print_when in bounds.

via handling return_second and if_then_else intrinsics

Fixes #308