make putArrayList and getArrayList more mature

Change-Id: I003743e2e1275eb053d9fb98cdff7017e1e37fad