Gene cloning, functional expression and characterisation of a novel type I pullulanase from Paenibacillus barengoltzii and its application in resistant starch production.