NumericVector::get refactoring

Added an API for get(T*), and refactored the get(vector<T>) API to be
an inline wrapper for it.