DataModel 1.0 compatibility fixes

Item::newFromArray has been removed
You can also just do `->setId( 42 )`. This is fine if it's of type `Item`, since we can always interpret the number correctly then.