Ensure that the layout is not changed from last call.

See http://jsfiddle.net/mrgamer/srttg/ provided by @mrgamer on bug #165

Signed-off-by: Claudio Mignanti <c.mignanti@gmail.com>
If the layout is not changed ensure to pass also updated serialize