automatic metadata issue, various bug fixes

metadata is now automatically issued when passband parameters change.

various bug fixes in spead related functions