Fix ValueError in MCMCSamplesDict from old numpy deprecation error
The purpose of this MR is to fix a ValueError that can be raised when initialising MCMCSamplesDict
because of an old numpy deprecation error. This is similar to !734 (merged) and related to #306 (closed).