(bug: 49878) Fix passing of serialization options in lua library.

Change-Id: I4762ad35a43cc2d6e3b8efae75762bcb782e33e2
Merge "(bug: 49878) Fix passing of serialization options in lua library."