Fix JSON compilation for ScanTemp operators

Obviously, this should be tested, but I'll leave that for a separate PR.