Add generics to ruby collections