Nah, it should work with any entity.
I found the bug. It does create a key but in a different place. As I said, the codebase is very old and spaghetti like at this point, so I had an old error with Z coordinates.