Google cloud storage query scoping issues

I seem to be encountering an issue with Google cloud storage queries. None of them seem to be able to access values scoped to a page, even when the query is also defined in the same page scope. I get a message similar to this:

Unable to access 'outboxFilePrefixInput' since it is scoped to 'outbox'. 'undefined' is scoped to the app.

The query seems able to access values from the global scope.

Any thoughts? This seems like a bug to me.