Changes fixRef() argument order for easier argument addition
Changed $ref to $core in fixRef() for consistency
fixRef() logic overhaul
Now it supports expanding (captioned) plain links