Fixed bug in Tools.ModelToElement mixin when using numbers as model ids