Added is_scalar() check to store param.