We are currently giving BIP141 sigop values in block templates even before BIP141 is active.
This is broken in 0.13 and will need a backport. (although not sure it's worth delaying 0.13.0 over?)
Includes RPC test improvements to catch the issue, which now pass with the fix.