Fix gen list processing bugs
Remove conkeyref attribute after resolution
Fix workdir PI generation