parameter.as_signal() not working as expected when parameter.active is multi-dimensional

When the `Parameter.active` is multi-dimensional, `Parameter.as_signal` is filled with zeros where active is False. It should be filled with nans. This pull request fixes the issue.