Properly set's prefix for both schema and grammer objects

Fixes: https://github.com/pyrocms/pyrocms/issues/2827#issuecomment-20035707