serialize: fix align of the double type on ARM

It's posible situation when gcc doesn't support malign-double command
line option. In this case copy operation on that platform could lead to SIGBUS
for type double.

buxton already uses memcpy for coping serialized data in serialize.c.

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>