Hacky fix to get generics syntax working on ArrayList and HashMap ref pages, fixes #159