Single division fix for munge_init

Single div_size value is passed as double and trying to index
it results in error. Fix from rurik.
shared bram fixing compile issues

Previous change was not compile tested. Convert blocks added back
and data type manipulated so that goes out Unsigned always (as before)
and gets Reinterpreted just before simulated memory block (to ensure
simulated values come out correctly) and on output (to ensure type is
correct).
parameter check fix

Can specify single division size, misreporting error if don't.
Reverting two commits containing fixes that were subsequently implemented on ska-sa.

Andrew's fixes are better and should be used instead. This commit should make merging
again with ska-sa/mlib_devel possible without conflicts.

This reverts commit e3a6b708ed425357dcb23fbfd6bda2a7187bb30a.
This reverts commit 24067741f12e2d1c94084c6e4262b2d06f0b5c4c.
Merge remote-tracking branch 'ska/master' into origin.