Generify Populator interface.

Plus, a small typo in PopulatorImpl.java, which was causing an StackOverflow error.