Apache FOP Layout fix

Layout fix
by
JM
:

Fixed ID resolution for nested bookmarks with duplicated IDs.