Fix rust breaking collection API

- Just changed `to_owned_vec` to `collect` and add appropriate type
  info.
Minor refactor
Replace uint with u64

- To avoid possible phasing of uint and to make sure all platforms
  operate similarily, uint is removed in favor of u64