templated objects use 'None' instead of 0 for 'no key'