Add support for host objects in older environments

Can't call slice on host objects in ie<9