move `reinterpret` error check inside `box`. fixes #8088

Conflicts:
	src/intrinsics.cpp
Backport of fd0075c68ea14ff and a small fix from 114e4dcefc4614
ref: #8088
fix issue #8155 where keywords arguments were not getting displayed properly

Backport of 370b640
for #8190