Fix using namespace miss uses and Serialize method user object pointer to be const

Signed-off-by: MHesham <mhesham.fcis@gmail.com>