try creating whole db from scratch, do the dump with option -c (willrecreate all objects automagically).you can also issue 'drop language plpgsql [cascade]' before.