Removed redundant parameters immediateIdToParameterOrdinalMap,
immediateIdToVariableOrdinalMap, closedParameterIds, closedVariableIds
and from createBodyListener.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>