updated param getter/setter to work on all elements

#1040 and MAGN-1071