Added serialize_value() function along with a test case.
Fixed notice popups