Fixed JSON rendering of actions for entities

Actions available for the given entity should always be rendered
as arrays of type identifiers not full JSON representations.