change incoming nil to empty (string or array)

This significantly reduces code later and avoids traps.

Signed-off-by: Zeljko <zeljko@zwr.fi>
do not include selected subs

Signed-off-by: Zeljko <zeljko@zwr.fi>