Change ref/assign to getindex/setindex!.
Remove depreciated/removed Base functions.