Fix issue in runtime picklers with singleton objects