Fix entity.aliases for integer ids

I got an exception when it was: str + int + str