Improve population function greatly, finishing circular reference prevention.
Remove old function to get population paths.
Remove empty arrays from documents.
Fix a typo which caused singular routes to fail.