[BUGFIX] Support numeric identifiers in dynamic route parts
Currently the dynamic route part handler provided by Flow (namely
``DynamicRoutePart`` and ``IdentityRoutePart``) only support objects
with string identifiers.
With this change also numeric identifiers are supported, for example
for entities with a numeric auto_increment identifier.