more changes aiming to better support Zic universe!

warning, these corrections and evolutions have been released without tests -- specifically, the modification of get_permalink() functions can impact legacy custom code.

-- Bernard