Implement some more methods for dynamic list class, including remove/removeAll/lastIndexOf/toArray