Resolve scope issues and general directive cleanup for list repeater.