opencpu object encoder/decoder