Don't throw E_NOTICE on array()->string safe conversion
Added scalar typehint tests