Fix writing one-element tuple parameters to JLD files

This wrote SubArrays in a way that they couldn't be read later.