Added preliminary support for multiple reference frames

L0 reference list is being updated and sent to bitstream but actual usage of other than default reference might break something.