On Optimal Filtering for Polynomial System States