Rework the device handling at create a bit...

Namely, handle the mem allocs in a smarter way for aliases.
Handle the device aliases in a slightly better way