[[ RefactorSyntax ]] Fixed a bug in MCChunk::getoptionalobj