I'm definite its something to do with the data flags. Because, if you spawn an elder guardian (using eler guardian's network id) it spawns just a guardian and not the elder. For the elder, you'll need to add the elder data flag to the mob. I know I'm kinda off topic but hope that helped :3