Fixed issue causing param arrays to sometimes be created multiple times (#268)