I stored a property this way:
$obj->setProperty('key', 'value');
However, when I fetched them all with $obj->getExtraProperties() the key turned into KEY which is problematic, because the code follows with a case-sensitive spelling check and this breaks it completely.