Process the custom lib object to extract and group properly.

Fix #438.

:yum: