fixed from js method on subset operator to handle types correctly.