Added MultiDecoder dependency ordering to address #1045

I believe the function definition must be made first, so that the recursive call can be made.