I think that the main issue may be that you’re attempting to get the repeater field before something is ACF is completely initialized. That’s the reason that you’re getting a number value for the repeater field rather than the array. ACF is returning the number of rows in the repeater, which is what the actual repeater value in the DB is. At least that’s my guess at the issue.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users