[core] Add NIActions::attachedActionTypesForObject: method.